import request from '@/utils/request'

//  分页查询路由信息
export function getPageList(query) {
  return request({
    url: '/api/gateway/page',
    method: 'post',
    data: query
  })
}

//  保存路由信息
export function handleSave(data) {
  return request({
    url: '/api/gateway/save',
    method: 'post',
    data: data
  })
}

//  删除路由信息
export function handleDelete(data) {
  return request({
    url: '/api/gateway/delete',
    method: 'post',
    params: data
  })
}

// 刷新路由
export function handleRefresh() {
  return request({
    url: '/api/gateway/refresh',
    method: 'get'
  })
}
